<?php
class ui_reader_show_share extends ui {
	/**
	 * @param object $S
	 * @param array $param = array (
	 * 			article_id			// save article id，只有自己保存的文章才能share
	 *			t				// title 传递过来仅仅为了显示
	 *			u				// url 传递过来仅仅为了显示
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$param['article_id'] = intval($param['article_id']);
		
		$S->assign('article_id', 	$param['article_id']);
		$S->assign('t', $param['t']);
		$S->assign('u', $param['u']);

		// circle部分：
		$data_circle = new data_circle();
		$circles = $data_circle->ls_without_article($this->uid, $param['article_id']);
		$S->assign('circles', $circles);
		
		// friends部分：用户的好友列表
		$data_friend = new data_friend();
		$friends = $data_friend->ls_without_recommend_article($this->uid, $param['article_id']);
		$S->assign('friends', $friends);			// 不需要分页信息
		
	}
}
?>